﻿<Window x:Class="WITD.AddNewLinkTypeForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add or remove link type"
        Width="678"
        Height="330"
        Activated="Window_Activated"
        Background="White"
        ResizeMode="NoResize"
        Topmost="True"
        WindowStartupLocation="CenterOwner"
         
        WindowStyle="ToolWindow">
    <Grid Width="670"
          Height="308"
          Background="#41000000">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="322*" />
            <ColumnDefinition Width="348*" />
        </Grid.ColumnDefinitions>
        <TextBox Name="txtLinkRefName"
                 Grid.ColumnSpan="2"
                 Width="241"
                 Height="22"
                 Margin="114,98,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 TabIndex="2"
                 ToolTip="Reference name must have at least one . (dot). Example: CompanyName.Links.NewLink" TextChanged="txtLinkRefName_TextChanged" />
        <TextBox Name="txtLinkForwardName"
                 Grid.ColumnSpan="2"
                 Width="241"
                 Height="22"
                 Margin="114,42,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 TabIndex="0"
                 ToolTip="This is the friendly  name of the link, such as Affects or Tested By." TextChanged="txtLinkForwardName_TextChanged" />
        <TextBox Name="txtLinkReverseName"
                 Grid.ColumnSpan="2"
                 Width="241"
                 Height="22"
                 Margin="114,70,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 TabIndex="1"
                 ToolTip="This is the reverse link end name. Example: Affected By" TextChanged="txtLinkReverseName_TextChanged" />
        <Label Name="label1"
               Width="100"
               Height="22"
               Margin="18,98,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Reference Name:" />
        <Label Name="label2"
               Width="100"
               Height="22"
               Margin="18,42,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Forward Name:" />
        <Label Name="label3"
               Width="100"
               Height="22"
               Margin="18,70,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Reverse Name:" />
        <Label Name="label4"
               Width="100"
               Height="23"
               Margin="18,126,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Topology:" />
        <ComboBox Name="cboTopology"
                  Grid.ColumnSpan="2"
                  Width="241"
                  Height="22"
                  Margin="114,126,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  SelectionChanged="cboTopology_SelectionChanged"
                  TabIndex="3"
                  ToolTip="The available link type topologies for the source collection." />
        <ComboBox Name="cboStores"
                  Grid.ColumnSpan="2"
                  Width="231"
                  Height="23"
                  Margin="124,9,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Visibility="Hidden" />
        <Label Name="lblStores"
               Width="100"
               Height="28"
               Margin="18,4,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Work Item Store"
               Visibility="Hidden" />
        <Button Name="btnCancel"
                Grid.Column="1"
                Width="75"
                Margin="0,269,12,16"
                HorizontalAlignment="Right"
                Click="btnCancel_Click"
                Content="Close"
                TabIndex="9"
                ToolTip="Closes this window." />
        <Button Name="btnSave"
                Grid.ColumnSpan="2"
                Width="118"
                Height="23"
                Margin="237,222,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnSave_Click"
                Content="Save new link type"
                TabIndex="4"
                ToolTip="Attempts to create a new link type based on the values entered above." />
        <ListBox Name="lstLinks"
                 Grid.Column="1"
                 Width="233"
                 Height="171"
                 Margin="102,40,0,0"
                 HorizontalAlignment="Left"
                 VerticalAlignment="Top"
                 SelectionChanged="lstLinks_SelectionChanged" MouseDoubleClick="lstLinks_MouseDoubleClick"
                 TabIndex="6"
                 ToolTip="Displays the WorkItemLinkTypes associated with the source collection." />
        <Label Name="label5"
               Grid.Column="1"
               Width="231"
               Height="28"
               Margin="98,12,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Select a link type to edit or remove" />
        <Button Name="btnRemoveLink"
                Grid.Column="1"
                Width="139"
                Height="23"
                Margin="196,222,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnRemoveLink_Click"
                Content="Remove selected link type"
                TabIndex="8"
                ToolTip="Attempts to remove the selected link type from the source collection." />
        <Label Name="label6"
               Grid.ColumnSpan="2"
               Width="337"
               Height="28"
               Margin="18,12,0,0"
               HorizontalAlignment="Left"
               VerticalAlignment="Top"
               Content="Enter information for a new link type or edit existing link type" />
        <Label Name="label7"
               Grid.Column="1"
               Width="59"
               Height="28"
               Margin="26,12,263,0"
               HorizontalAlignment="Center"
               VerticalAlignment="Top"
               HorizontalContentAlignment="Center"
               Content="or" />
        <Rectangle Name="rectangle1"
                   Grid.Column="1"
                   Width="1"
                   Height="223"
                   Margin="55,31,0,0"
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   Stroke="Black" />
        <Button Name="btnHelp"
                Width="162"
                Height="23"
                Margin="23,222,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnHelp_Click"
                Content="Help on Topologies"
                TabIndex="5"
                ToolTip="Click to see more information on Team Foundation Server work item link type topologies." />
        <Button Name="btnShowInfo"
                Grid.Column="1"
                Width="83"
                Height="23"
                Margin="104,222,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnShowInfo_Click"
                Content="Show info"
                TabIndex="7"
                ToolTip="Displays the individual field values for the selected link type." />
        <Rectangle Name="rectangle2"
                   Grid.ColumnSpan="2"
                   Width="670"
                   Height="2"
                   Margin="1,253,0,54"
                   HorizontalAlignment="Left"
                   Stroke="Black" />
        <CheckBox Name="chkUpdateExisting"
                  Grid.ColumnSpan="2"
                  Width="241"
                  Height="16"
                  Margin="114,164,0,0"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Top"
                  Content=" Update existing"
                  ToolTip="Check here to update an existing LinkType definition with these new values." />
        <Button Name="btnPreFill"
                Grid.Column="1"
                Width="34"
                Height="50"
                Margin="62,70,0,0"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Click="btnPreFill_Click"
                Content="&lt;&lt;" />
    </Grid>
</Window>
